package constants

var codeText = map[int]string{
	CodeOk:                         "Succeed.",
	CodeSystemException:            "Failed to request.",
	CodeInputParamInvalid:          "Failed to request.",
	CodeInputJSONInvalid:           "Failed to request.",
	CodeDataMissing:                "Failed to request.",
	CodeReadDbFailed:               "Failed to request.",
	CodeWriteDbFailed:              "Failed to request.",
	CodeSendEmailFailed:            "Failed send email.",
	CodeInvalidFileData:            "Failed to request.",
	CodeQueryFailed:                "Failed to request.",
	CodeFileUploadFailed:           "Failed to upload file.",
	CodeTransferFileFailed:         "Failed to transfer file.",
	CodeInvalidSession:             "Invalid session.",
	CodeNotImplement:               "Coming soon. Please stay tuned.",
	CodeInvalidKey:                 "Failed to request.",
	CodeShortenFailed:              "Failed to request.",
	CodeSaveLogToEsFailed:          "Failed to request.",
	CodeSaveLogToFileFailed:        "Failed to request.",
	CodeStationNotExist:            "Cannot find device in server.",
	CodeStationExist:               "Device exists in server.",
	CodeStationBinded:              "This device unit is already linked to another account.",
	CodeStationNotBinded:           "This device unit has not been linked to an account yet.",
	CodeStationNotAdmin:            "Only the owner can change settings.",
	CodeDeviceBinded:               "This device is already linked.",
	CodeDeviceBindedToAnother:      "This device is already linked to another account.",
	CodeDeviceNotBinded:            "This device has not been linked to an account yet.",
	CodeDeviceNotExist:             "This device does not exist.",
	CodeDeviceExist:                "This device is already exist.",
	CodeStationNotReset:            "Failed to request.",
	CodeDeviceNotAdmin:             "Only the owner can change settings.",
	CodeStationAllocated:           "Failed to request.",
	CodeRunOutOfDid:                "Failed to request.",
	CodeDidExist:                   "Failed to request.",
	CodeDeviceAllocated:            "Failed to request.",
	CodeRunOutOfRtsp:               "Failed to request.",
	CodeRtspExist:                  "Failed to request.",
	CodeDidServerExist:             "Failed to request.",
	CodeDidServerNotExist:          "Failed to request.",
	CodeStationBindedToAnother:     "This device unit is already linked to another account.",
	CodeDeviceNotShare:             "This device's sharing has been deleted.",
	CodeStartStreamFailed:          "Failed to play.",
	CodeEventNotExist:              "This event does not exist.",
	CodeEventNotAuth:               "Only the owner can edit videos.",
	CodeEventFavorited:             "Failed to request.",
	CodeEventNotFavorited:          "Failed to request.",
	CodeEventPartialNotExist:       "Failed to request.",
	CodeStationMemberExist:         "Device has been shared to this account.",
	CodeStationMemberNotExist:      "Device has not been shared to this account.",
	CodeStationSuperAdmin:          "Failed to request.",
	CodeStationDeviceNotExist:      "Failed to request.",
	CodeStationMemberInvited:       "Sharing invitation has been sent.",
	CodeStationMemberNotInvited:    "Failed to request.",
	CodeStationNotSuperAdmin:       "Failed to request.",
	CodeUnauthorizeSelf:            "Failed to request.",
	CodeStationMemberNotRegister:   "Failed to request.",
	CodeStationInviteSelfDisallow:  "You cannot share the devices with yourself.",
	CodeStorageNotOpen:             "You have no active subscriptions.",
	CodeUserNotrial:                "Your cloud storage subscription trial has expired.",
	CodeStorageOpened:              "Subscription has been activated.",
	CodeStorageExpired:             "Subscription has expired. Please purchase a new subscription service.",
	CodePackageNotExist:            "Failed to request.",
	CodeOrderNotExistOrExpired:     "Failed to request.",
	CodeOrderNotCreated:            "Failed to request.",
	CodeOrderNotPayed:              "Failed to request.",
	CodeOrderChargeFailed:          "Failed to request.",
	CodeOrderRefundFailed:          "Failed to request.",
	CodeOrderChargeSuccDbFailed:    "Failed to request.",
	CodeOrderRefundSuccDbFailed:    "Failed to request.",
	CodeInvalidSubscription:        "Failed to request.",
	CodeCancelSubscriptionFailed:   "Failed to unsubscribe.",
	CodeDeviceNotSubscribed:        "Failed to request.",
	CodeCreatePlanFailed:           "Failed to request.",
	CodeCreateSubscriptionFailed:   "Failed to request.",
	CodeUpdateSubscriptionFailed:   "Failed to request.",
	CodeDeviceAlreadySubscribed:    "Failed to request.",
	CodeCreateCustomerFailed:       "Failed to request.",
	CodeConflictSubscription:       "This camera has an active subscription. Please wait to subscribe until current subscripton expires.",
	CodeRegisterFailed:             "Failed to sign up.",
	CodeValidateEmailFailed:        "Failed to request.",
	CodeActivateFailed:             "Failed to request.",
	CodeForgetPasswordFailed:       "Failed to reset the password.",
	CodeChangePasswordFailed:       "Failed to chang password.",
	CodeThirdPartyLoginFailed:      "Failed to login with a third-party account.",
	CodeLoginFailed:                "Failed to login.",
	CodeAutoLoginFailed:            "Failed to request.",
	CodeGetProfileFailed:           "Failed to request.",
	CodeSubscribeEmailsFailed:      "Failed to request.",
	CodeUpdateProfileFailed:        "Failed to change nickname.",
	CodeEditAvatarFailed:           "Failed to update avarta.",
	CodeUserNotExist:               "Failed to request.",
	CodeResetPasswordFailed:        "Failed to request.",
	CodeResendActiveEmailFailed:    "Failed to resend.",
	CodeAccountNotActivated:        "Verification email has been sent to your mailbox; check your junk mail folder if you don't see it. Please verify your account before loggin in.",
	CodeDestroyUserFailed:          "Failed to delete account.",
	CodeSaveAccountToRedisFailed:   "Failed to request.",
	CodeValidateTokenFailed:        "Failed to request.",
	CodeGetCountriesFailed:         "Failed to request.",
	CodeGetStatesFailed:            "Failed to request.",
	CodeAdminUserNotExist:          "This user does not exist.",
	CodeSetSessionFailed:           "Failed to update session.",
	CodeDeleteSessionFailed:        "Failed to delete session.",
	CodeNotSuperAdmin:              "You are not a senior administrator.",
	CodeAdminUserExist:             "This user name is already in use.",
	CodeModifyPasswordFailed:       "Failed to change password.",
	CodeDeleteUsersFailed:          "Failed to delete account.",
	CodeUndeleteUsersFailed:        "Failed to recover user profile.",
	CodeInvalidUserOrPassword:      "Invalid user name or password.",
	CodeUpdateUserFailed:           "Failed to update user profile.",
	CodeNotOpsAdmin:                "You are not administrator.",
	CodeAiAssisGroupNotExist:       "Failed to request.",
	CodeAiAssisGroupExist:          "Failed to request.",
	CodeAiAssisDeleteGroupsFailed:  "Failed to request.",
	CodeAiAssisUserNotExist:        "Failed to request.",
	CodeAiAssisUserExist:           "This nickname has already been taken.",
	CodeAiAssisDeleteUsersFailed:   "Failed to request.",
	CodeAiAssisMonitorFaceNotExist: "Failed to request.",
	CodeAiAssisDeleteFaceFailed:    "Failed to delete this picture of the face.",
	CodeAiAssisGroupHasUsers:       "Failed to request.",
	CodeAiAssisFaceNotExist:        "Failed to request.",
	CodeGeneralCreateFailed:        "Failed to send feedback.",
	CodeSectorAlreadyExist:         "Failed to request.",
	CodeSectorNotExist:             "Failed to request.",
	CodeSectorHasDevices:           "Failed to request.",
	CodeSectorDefaultExist:         "Failed to request.",
	CodeOtaDeviceTypeNotExist:      "Failed to request.",
	CodeOtaGrayBatchNotExist:       "Failed to request.",
	CodeOverallParentNotExist:      "Failed to request.",
	CodeCipherGenerateFailed:       "Failed to request.",
	CodeInvalidStation:             "Failed to request.",
	CodeSaveStationFailed:          "Failed to request.",
	CodeConnectionNotExist:         "Failed to request.",
	CodeTransferFailed:             "Failed to request.",
	CodeSmartUnauth:                "Failed to request.",
	CodeReviewDayLimitReach:        "Failed to request.",
	CodeReadRedisFailed:            "Failed to request.",
	CodeWriteRedisFailed:           "Failed to request.",

	CodeStripeCardDeclined:    "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeExpiredCard:     "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeIncorrectNum:    "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeInvalidCvc:      "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeInvalidExpM:     "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeInvalidExpY:     "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeInvalidNum:      "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeIncorrectCvc:    "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeIncorrectZip:    "Entered information is incorrect, or please check if your card is valid.",
	CodeStripeMissing:         "Failed to process. Please try again.",
	CodeStripeProcessingErr:   "Failed to process. Please try again.",
	CodeStripeRateLimit:       "Failed to process. Please try again.",
	CodeStripeResourceMissing: "Failed to process. Please try again.",

	CodeGeofenceMsgInvite:         "Your family or friends is requesting your phone's location for enabling the Geofencing feature.",
	CodeGeofenceMsgEnableLocation: "%s's geofencing is unable to work perfectly due to your family or friend's phone location service has not been enabled or the app has not been granted location permission.\nGo to the Enabled Devices menu to check the details.",

	CodePopupBoxExist:     "Popup box exists in server.",
	CodePopupControlExist: "Popup control exists in server.",

	TemplatePaymentSucceed:             "Payment for your monthly/annual subscription was successful.",
	TemplatePaymentFailed:              "Credit card payment for your monthly/annual subscription failed.",
	TemplateSubscriptionDeleted:        "Your monthly/annual subscription for cameras has been successfully cancelled.",
	TemplateSubscriptionExpiring:       "Your cloud storage subscription will be renewed and charged automatically.",
	TemplateSubscriptionTrialExpiring:  "Your free trial of the cloud storage for \"%s\" will expire soon. If you continue to want to store your events recording to Cloud, you should add a subscription.",
	TemplateInviteIgnored:              "Devices sharing has been denied by %s.",
	TemplateInviteCleared:              "Shared devices have been removed by %s.",
	TemplateInviteDeleted:              "Devices sharing has been deleted by %s.",
	TemplateInviteRemoved:              "Shared devices have been removed by %s.",
	TemplateAbnormalTemperatureAlarm:   "Camera cannnot be charged when temperature is lower than 32℉ (0℃) or higher than 113℉ (45℃).",
	TemplateUpgradeAutoSucceed:         "Device %s has been updated successfully.",
	TemplateUpgradeManualSucceed:       "Device %s has been updated successfully.",
	TemplateUpgradeManualFailed:        "Device %s failed to update.",
	TemplateFieldRequired:              "%s required.",
	TemplateFailedToRequest:            "Failed to request.",
	TemplateSubscriptionSucceed:        "Your monthly/annual subscription for cameras was successful.",
	TemplateDeviceUpgradeAutoSucceed:   "Camera %s has been updated successfully.",
	TemplateDeviceUpgradeManualSucceed: "Camera %s has been updated successfully.",
	TemplateDeviceUpgradeManualFailed:  "Camera %s failed to update.",

	TemplateEventTypeUnBind:     "Your doorbell named %s has been unbind by %s.",
	TemplateEventTypeAtDoorbell: "Someone is at your door",

	CodeLoginLimit: "Password entered wrong many times, please try again tomorrow",

	Code2faMessage: "Because the two-factor authentication has been enabled, you may not be able to log in on phones with app v1.7.3 or lower. Please uninstall the old version, then download and install v1.7.4 and above version.",

	TemplateEventKeypadCreateAlarm:      "%s activated a panic alarm via keypad",
	TemplateEventKeypadCancelAlarm:      "%s canceled a panic alarm via keypad",
	TemplateEventThirdpartyCancelNotify: "%s canceled the emergency service after confirm with the monitoring center",
	TemplateEventDeviceCreateAlarm:      "Emergency service has been activated automatically by the trigger",
	TemplateEventPeopleCreateAlarm:      "%s requested an emergency service via the app",
	TemplateEventPeopleCancelAlarm:      "%s canceled an emergency service via the app",
	TemplateEventAlarmStatusChanged:     "",
	TemplateEventThirdpartyPsapNotify:   "Monitoring center has dispatched the emergency service",

	TemplateMonitoringSubscriptionSucceed:       "You have successfully subscribed to the Protection Plan.",
	TemplateMonitoringSubscriptionDeleted:       "Your Protection Plan subscription has been cancelled.",
	TemplateMonitoringSubscriptionExpiring:      "Your Protection Plan subscription will be renewed automatically.",
	TemplateMonitoringSubscriptionTrialExpiring: "Your free trial of the Protection Plan for \"%s\" will expire soon.",
}
